import {
	get,
	post
} from './http.js'
const TestManager = {
 //添加单选题
 addSingle:(params)=>post(`/question/single/addSingle`,params),	
 //获取题目类型
 getSpecials:(params)=>post(`/question/single/addSingle`,params),
 getAllKnowledgeTree:()=>post("/knowledge/getAllKnowledgeTree"),//获取知识点树
 addChoiceQuestion:(params,knowledges)=>post("/question/addChoiceQuestion?knowledges="+knowledges,params),//新增选这题
 addNotChoiceQuestion:(params,knowledges)=>post("/question/addNotChoiceQuestion?knowledges="+knowledges,params),//新增非选择题目
 getQuestionList:(currentPage,pageSize,parmas)=>post("/question/getQuestionList?currentPage=" + currentPage + "&pageSize=" + pageSize,parmas),
 getQuestionnaireExercise:(parmas)=>post("/test_paper/getQuestionnaireExercise",parmas),//获取试卷id的问卷信息（专项练习）
 //获取考试记录
 getUserTestRecords:(currentPage,pageSize,params)=>post("/test_record/getUserTestRecords?pageSize="+pageSize+"&currentPage="+currentPage,params),
 addTestRecord:(parmas,spendTime,testPaperId)=>post("/test_record/addTestRecord?testPaperId="+testPaperId+"&spendTime="+spendTime,parmas),//添加一条试卷记录
 getTestRecordsInfo:(parmas)=>post("/test_record/getTestRecordsInfo",parmas),//获取试卷答题记录详情

 //错题
 getWrongQuestionKnowledge:(parmas)=>post("/knowledge/getWrongQuestionKnowledge",parmas),//获取错题的知识点
 getWrongQuestionRecords:(parmas)=>post("/question/record/getWrongQuestionRecords",parmas),//获取错题记录
 
 //收藏题目
 collectQuestion:(parmas)=>post("/question/collectQuestion",parmas),//收藏试题
 isCollectQuestion:(parmas)=>post("/question/isCollectQuestion",parmas),//试题是否收藏
 //获取考卷
 getQuestionnaireTest:(parmas)=>post("/test_paper/getQuestionnaireTest",parmas),
 //学生提交任务
 studentSubmittask:(parmas,spendTime,taskId)=>post("/education/task/studentSubmitExam?taskId="+taskId+"&spendTime="+spendTime,parmas),
 studentSubmitExam:(parmas,spendTime,examId)=>post("/education/exam/studentSubmitExam?examId="+examId+"&spendTime="+spendTime,parmas),

 //获取id试卷记录
 getTestRecordById:(parmas)=>post("/test_record/getTestRecordById",parmas),
 //获取试卷的知识点分布
 getTestPaperKnowledge:(parmas)=>post("/knowledge/getTestPaperKnowledge",parmas),
 //获取试卷记录的错题知识点分布
 getTestPaperWrongRecordKnowledge:(parmas)=>post("/knowledge/getTestPaperWrongRecordKnowledge",parmas),

 //获取每日错题
 getDaysWrongQuestion:()=>post("/question/record/getDaysWrongQuestion"),
 getSystemPaperKnowledge:()=>post("/knowledge/getSystemPaperKnowledge"),//获取系统试卷知识点
 getSystemPaper:(parmas)=>post("/test_paper/getSystemPaper",parmas),//获取系统类型的试卷
 getTestPaperInfo:(parmas)=>post("/test_paper/getTestPaperInfo",parmas),//获取试卷id的详细内容
 getQuestionScore:(parmas)=>post("/test_record/getQuestionScore",parmas),//获取用户答题得分统计
 generatePaperForEducation:(parmas)=>post("/paperGenerator/generatePaperForEducation",parmas),//为教师生成试卷
}
export {
	TestManager
};